
public class SwitchCase {

	public static void main(String[] args) {

		int WeekDayIndex = 3;
		String WeekDayName;
		
		switch(WeekDayIndex)
		{
			case 1:
				WeekDayName = "Monday";
				break;
			
				case 2:
					WeekDayName = "Tuesday";
					break;
					
					case 3:
						WeekDayName = "Wednesday";
						break;
						
						case 4:
							WeekDayName = "Thursday";
							break;
							
							case 5:
								WeekDayName = "Friday";
								break;
								
								case 6:
									WeekDayName = "Saturday";
									break;
									
									case 7:
										WeekDayName = "Sunday";
										break;
										
										default : WeekDayName = "Invalid Day index";
										break;
		}

		System.out.println(" "+WeekDayIndex+ " = " + " " +WeekDayName);
				
		}
}
